home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1998 / MacHack 1998.toast / The Hacks! / Talking KeyBoard / Source / globals.h < prev    next >
Encoding:
Text File  |  1998-06-06  |  1.4 KB  |  55 lines  |  [TEXT/CWIE]

  1. // Program Author: Paul Baxter pbaxter@assistivetech.com
  2. // This program may be freely distributed.
  3. //
  4. //
  5.  
  6. extern    long         LowMemCurA5 : 0x0904;
  7.  
  8. // We are using Far Data, Far Method Tables, Far Strings and Large Code model
  9. // so we don't need A5
  10. // To be compatable with Macsbug we can not use A5
  11.  
  12. /*
  13. #define EnterAppCallBack()            unsigned long saveA5; saveA5 = SetCurrentA5()
  14. #define    ExitAppCallBack()            SetA5(saveA5)
  15.  
  16. #define AsmEnterAppCallBack            movem.l A5,-(SP);    move.l    LowMemCurA5,A5
  17. #define AsmExitAppCallBack            movem.l (SP)+,A5
  18. */
  19.  
  20. #define EnterAppCallBack()            
  21. #define    ExitAppCallBack()            
  22. #define AsmEnterAppCallBack
  23. #define AsmExitAppCallBack
  24.  
  25. #define kNumKeys        128
  26.  
  27. typedef struct {
  28.     char keyCode;
  29.     char align;
  30.     Str31 pronounciation;
  31.     Str31 shiftpronounciation;
  32. } KeyPronunciation;
  33.  
  34.  
  35. extern Boolean gQuitting;
  36. extern Ptr gCharBuffer;
  37. extern Ptr gWordBuffer;
  38. extern Ptr gSentenceBuffer;
  39. extern short gCharIndex;
  40. extern short gWordIndex;
  41. extern short gSentenceIndex;
  42. extern Ptr gFilterProc;
  43. extern QHdr gForwardedEvents;
  44. extern ProcessSerialNumber gPSN;
  45. extern SpeechChannel gSpeechChannel;
  46. extern short gVoiceItem;
  47. extern Boolean gLastSpeechChar;
  48. extern Ptr gASCIIChars;
  49. extern KeyPronunciation* gPronounce;
  50. extern long gNumPronounces;
  51. extern ADBServiceRoutineUPP gKeyBoardServiceRoutine;
  52. extern ADBAddress gKeyBoardADBAddress;
  53. extern PrefHandle gPrefs;
  54. extern short gPronounceIndex[];
  55. extern Boolean gShiftState;